Ext.define('TS.lib.form.Checkbox',{
    extend: 'Ext.form.field.Checkbox',
    alias : ['widget.checkbox','widget.check'],
    uncheckedValue:0,
	applyListeners:function(){
		// same sie nakładają
		/*
		var match = Util.attrMatch(this.initialConfig,'on%');
		for(x in match){
			this.on(x.substr(2).toLowerCase(),match[x]);
		}*/
		//this.initialConfig.onChange && this.on('change',this.initialConfig.onChange);
		
    	this.initialConfig.change && this.on('change',this.initialConfig.change);
		
	},
    initComponent:function(){
    	this.callParent(arguments);
    	//this.initConfig(arguments[0]);
    	
    	this.applyListeners();
    },
    inputValue:1
});